﻿using CefSharp.WinForms;
using CefSharp;
using System;
using System.Windows.Forms;

namespace coding
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        private static void Main()
        {

            var settings = new CefSettings();

            // 启用 WebRTC 支持
            settings.CefCommandLineArgs.Add("enable-media-stream", "1");
            // 启用 GPU 加速
            settings.CefCommandLineArgs.Add("enable-gpu", "1");
            // 启用 H.264 支持
            settings.CefCommandLineArgs.Add("enable-widevine-cdm", "1");

            // 初始化 CefSharp
            Cef.Initialize(settings);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new FormMain());
            //Application.Run(new FormLog());

            //Application.Run(new test.Form2());
        }
    }
}